import Vue from "vue";
import Router from "vue-router";
import index from '@/pages/index'
import notFound from "@/pages/404.vue";
Vue.use(Router);
let router = new Router({
  routes: [
    {
      path: "/", //路由默认跳转
      redirect: "index",
    },
    {
      name: "index",
      path: "/index",
      component: index,
      remoteControl: false, // 该路由是否可以远程控制，明确的设置为false则不可通过远程控制。
    },
    {
      path: "*",
      name: "404",
      component: notFound,
    },
  ],
});

export default router;
